package com.mzkj.wanjulaile.mobile.api.modules.brand.entity;

import com.mzkj.wanjulaile.mobile.api.common.entity.DataEntity;
import org.hibernate.validator.constraints.Length;

/**
 * 品牌管理Entity
 * @author ianly
 * @version 2016-10-09
 */
public class Brand extends DataEntity<Brand> {
	
	private static final long serialVersionUID = 1L;
	private String capital;		// 首字母
	private String name;		// 品牌名称
	private String logo;		// 品牌logo
	private String sort;		// 热门排序
	
	public Brand() {
		super();
	}

	public Brand(String id){
		super(id);
	}

	@Length(min=0, max=10, message="首字母长度必须介于 0 和 10 之间")
	public String getCapital() {
		return capital;
	}

	public void setCapital(String capital) {
		this.capital = capital;
	}
	
	@Length(min=1, max=255, message="品牌名称长度必须介于 1 和 255 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Length(min=1, max=255, message="未上传logo图片")
	public String getLogo() {
		return logo;
	}

	public void setLogo(String logo) {
		this.logo = logo;
	}
	
	@Length(min=0, max=11, message="热门排序长度必须介于 0 和 11 之间")
	public String getSort() {
		return sort;
	}

	public void setSort(String sort) {
		this.sort = sort;
	}
	
}